package com.tigercar.mainbody.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Ruiz
 * @date 2021/3/27 22:07
 */
@Configuration
public class PageHelperConfiguration {

    /**
     * 创建分页插件拦截器对象
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
